package org.luxor.commons.core.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 应用基本信息
 *
 * @author Mr.yan @date 2020/2/12
 */
@ConfigurationProperties(prefix = InfoProperties.PREFIX)
public class InfoProperties {
    public static final String PREFIX = "info";

    /**
     * 应用名称
     */
    private String name;

    /**
     * 应用描述
     */
    private String description;

    /**
     * 版本号
     */
    private String version;

    /**
     * 开发团队
     */
    private String team;

    /**
     * 负责人
     */
    private String principal;

    /**
     * 联系方式
     */
    private String contact;

    /**
     * 项目主页
     */
    private String url;

    /**
     * 所属区域
     */
    private String region;

    public InfoProperties() {
        this.version = "1.0.0";
        this.name = "普通应用";
        this.description = "一个基于Luxor-Framework框架搭建的普通应用";
        this.team = "产品研发中心";
        this.principal = "Developer";
        this.contact = "xxx@luxor.com";
        this.url = "https://gitee.com/luxor";
        this.region = "中国境内";
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getTeam() {
        return team;
    }

    public void setTeam(String team) {
        this.team = team;
    }

    public String getPrincipal() {
        return principal;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }
}

